package com.ymttest.database.mapping;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ymttest.database.model.BillInfo;

/**
 * Created by liwei on 2018/1/29.
 */
public interface DeliveryQueryMapper {
	/**
	 * 根据物流单号获取订单信息
	 *
	 * @param billCodes
	 * @return
	 */
	List<Long> getOrderIdsByBillCode(
			@Param("billCodes") List<String> billCodes,
			@Param("isDeleted") Boolean isDeleted);

	/**
	 * 根据订单号查对应的物流单号
	 *
	 * @param orderId
	 * @return
	 */
	List<String> getBillCodesByOrderId(@Param("orderId") long orderId);

	/**
	 * 根据订单号获取对应的物流单号
	 *
	 * @param orderIds
	 * @param officalLogistic
	 * @param deleted
	 * @return
	 */
	List<BillInfo> getBillCodesByOrderIds(
			@Param("orderIds") List<Long> orderIds,
			@Param("officalLogistic") Boolean officalLogistic,
			@Param("deleted") Boolean deleted);
}
